package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.dao.impl.UserDaoImpl;

import com.qf.pojo.User;
import com.qf.service.UserService;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    @Override
    public User loginByNameAndPwd(String userName, String userPwd) {
        return userDao.loginByNameAndPwd(userName,userPwd);

    }

    @Override
    public void insert(String username, String password) {
        userDao.insert(username,password);
    }

    @Override
    public User findUserName(String userName) {
        return userDao.selectUserName(userName);
    }
}
